import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/region_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/region_entity.g.dart';

@JsonSerializable()
class RegionEntity {
	late int code;
	late String msg;
	late List<RegionData> data;

	RegionEntity();

	factory RegionEntity.fromJson(Map<String, dynamic> json) => $RegionEntityFromJson(json);

	Map<String, dynamic> toJson() => $RegionEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class RegionData {
	late int regionId;
	late String regionName;

	RegionData();

	factory RegionData.fromJson(Map<String, dynamic> json) => $RegionDataFromJson(json);

	Map<String, dynamic> toJson() => $RegionDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}